import 'antd/dist/antd.css'
// import 'antd/lib/table/style'
import 'rc-ui/src/Icon/icon.scss'
import '../../css/index.scss'
import '../../css/border-an.scss'
import React, {PureComponent} from 'react'
import {render} from 'react-dom'
import syncHistoryWithStore from 'react-router-redux/lib/sync';
import createBrowserHistory from 'history/createBrowserHistory';
import store from '../store/map.store'
import {Provider} from 'react-redux'
import HashRouter from 'react-router-dom/HashRouter'
import Route from 'react-router-dom/Route'

import Frames from '../container/frame'
import Stat from '../container/stat'
import Manager from '../container/manager'


const history = syncHistoryWithStore(createBrowserHistory(), store);

render(<Provider store={store}>
        <HashRouter history={ history }>
            <Frames>
                <Route exact path="/" component={Stat}/>
                <Route path="/manager" component={Manager}/>
            </Frames>
        </HashRouter>
    </Provider>,
    document.getElementById('content')
)